package tw.com.softleader.fire.setting.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import tw.com.softleader.fire.common.dao.GenericDao;
import tw.com.softleader.fire.common.service.GenericService;
import tw.com.softleader.fire.setting.dao.DeductibleDao;
import tw.com.softleader.fire.setting.entity.AddrZipEntity;
import tw.com.softleader.fire.setting.entity.DeductibleEntity;
/**
 * 
 * @author mdoing2001
 *
 */
@Service
public class DeductibleService extends GenericService<DeductibleEntity> {

	@Autowired
	private DeductibleDao dao;
	
	@Override
	protected GenericDao<DeductibleEntity> getDao() {
		return dao;
	} 
	
	protected DeductibleDao getDeductibleDao() {
		return dao;
	}
	
	public List<DeductibleEntity> getByCode(DeductibleEntity entity){
		return getDeductibleDao().findByCode(entity);
	}
	
}
